package oop6.printer;

/**
 * @author oldliu
 * @since 1.0
 */
public class PrintTest {
    public static void main(String[] args) {
        Printer p=new Printer();
        p.setBrand("佳能炫彩007");
        p.setPrice(1900);
        p.setInk(new ColorFulInk());
        p.setPaper(new A4());
        p.print("java oop真的好容易");
        System.out.println(">>>>>>>>>>>>>");
        p.setInk(new WhiteAndBlackInk());
        p.print("oop真的不难，抽象和简化就可以了");
    }
}
